package com.rwaste.worker.mapper;

import com.rwaste.worker.entity.BasicInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import sun.tools.jconsole.Worker;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2021-09-25
 */
public interface BasicInfoMapper extends BaseMapper<BasicInfo> {
    //注册方法
    boolean  saveWorkerInfo(BasicInfo basicInfo );
    //登录方法
    BasicInfo findWorker(BasicInfo basicInfo);
    //根据id 查询 分理员信息
    BasicInfo findWorkerById(String id);

    BasicInfo findWorkerByPassword(String mobile,String password);

    boolean freezeWorkerById(String id);

    boolean thawWorkerById(String id);

    boolean delWoeker(String id);
}
